package com.yourenbang.transaction.api.service.ticket;

import com.yourenbang.lingyun.constants.enums.ServiceNameConstants;
import com.yourenbang.lingyun.core.message.Result;
import com.yourenbang.transaction.api.model.dto.ticket.AddTicketDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Date 2021/4/25 16:36
 * @Created by Jason
 */
@FeignClient(value = ServiceNameConstants.SERVICE_TRANSACTION)
@RequestMapping("/service/ticket")
public interface TicketApiService {

    /**
     * 银小云添加兑换券
     */
    @RequestMapping("/add")
    Result<Void> addTicket(@RequestBody AddTicketDTO dto);

    /**
     * 快收添加兑换券
     */
    @RequestMapping("/add/klks")
    Result<Void> addTicketKlks(@RequestBody AddTicketDTO dto);
}
